package com.hdy.framework.common.service;

import com.hdy.framework.common.dto.Dto;
import com.hdy.framework.common.entity.Entity;

public interface CommonService {
	public <T> T getObjEntityById(Long id, Class<T> clazz);
	public <T> Object getObjDtoById(Class<? extends T> dtoClazz,Class<T> entityClazz,Long id);
	public <T,D> Object getObjDtoById(Long id, Class<D> dtoClazz,Class<T> entityClazz);
	public Long saveEntity(Entity entity);
	public <T> T saveDto(Long id,Dto dto,Class<T> entityClass );
}
